package com.hk.employeemanagementsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hk.employeemanagementsystem.dto.AdvanceSearchEmpDto;
import com.hk.employeemanagementsystem.entity.EmployeeEntity;

import java.util.List;

/**
 * @author by 何坤
 * @Classname EmployeeEntityService
 * @Description TODO
 * @Date 2019/12/19 10:19
 */
public interface EmployeeEntityService extends IService<EmployeeEntity> {
    /**
     * 获取所有的职员
     * @param
     * @return java.util.List<com.hk.employeemanagementsystem.entity.EmployeeEntity>
     * @date 2019/12/19 17:24
     * @author 何坤
     */
    List<EmployeeEntity> selectAllEmployee();

    EmployeeEntity getEmployeeById(Integer id);

    List<EmployeeEntity> selectEmployeeByWorkId(String workId);

    Boolean validatorWorkIdUniqueness(String workId);

    Boolean validatorPhoneUniqueness(String phone, String workId);

    Boolean validatorEmailUniqueness(String email, String workId);

    Boolean validatorIdCardUniqueness(String idCard, String workId);

    List<EmployeeEntity> saveEmployee(EmployeeEntity employeeEntity);

    List<EmployeeEntity> advanceSearchEmp(AdvanceSearchEmpDto advanceSearchEmpDto);
}
